package com.lhj.springboot3.robot.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author lhj
 * @Date 2024/7/6 17:12
 */
@Data
//将组件放入容器
@Component
//读取配置文件中的属性
@ConfigurationProperties(prefix = "robot")
public class RobotProperties {
    
    private String name;
    
    private Integer age;
    
    private String email;
    
}
